package com.guoxin.principle.ocp;

/**
 * 开闭原则
 *
 * @author guoxin
 * @date 2019/8/14
 */
public class Ocp {

    public static void main(String[] args) {
        GraphicEditor ge = new GraphicEditor();
        ge.drawShape(new Rectangle());
        ge.drawShape(new Triangle());
        ge.drawShape(new Cycle());
    }
}
